import java.util.Random;

// Tabs = 4
//************************************************************
//	COPYRIGHT 2011 Bread Zeppelin - ALL RIGHTS RESERVED
//
// This file is the product of Bread Zeppelin and cannot be 
// reproduced, copied, or used in any shape or form without 
// the express written consent of Bread Zeppelin.
//************************************************************
//
//	$ID: Concurrent_Assg6
//
//	$Date: Feb 13, 2012
//
//	Reason:
//
//*************************************************************

/** $Author: Ben Hare, Zach Huenink, Philipp Wittmaack, Peter Maresca */
/** $Revision: 1 */

// Default Package

/**
 * Customer factory class. Creates a random object and a string of names.
 */
public class CustomerPartyFactory {
	
	private int totalCust = 0;
	
	Random rando = new Random();
	String[] names = {"Pete", "Ben","Phil","Zack","Steven","Cleetus"};
	
	/**
	 * Creates a customerParty object with random name and size.
	 * @return new customerParty object
	 */
	public CustomerParty createCustomerParty() {
		totalCust += 1;
		return new CustomerParty(names[rando.nextInt(6)] + totalCust, rando.nextInt(6)+1 );
	}

}
